package com.liu.boot02.controller;


import com.liu.boot02.mapper.UserMapper;
import com.liu.boot02.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@ResponseBody
public class UserController {

    /*@Autowired
    UserService userService;*/
    @Autowired
    UserMapper userMapper;


    @RequestMapping("/selectUser")
    public List<User> selectUser(){
        return userMapper.selectUser();
    }
}
